﻿/*======================================================================================
	TASK 12:                                                                    {Loop's}
	12.	Write a program that reads from the console a positive integer number N (N < 20)
    and outputs a matrix like the following:
          
          N=3               N=4
        1  2  3          1  2  3  4
	    2  3  4          2  3  4  5
	    3  4  5          3  4  5  6
                         4  5  6  7
========================================================================================*/

using System;

class OutputsAMatrix
{
    static void Main()
    {
        Console.Write("Enter positive number N=");
        int n = int.Parse(Console.ReadLine());

        int cell = 1;

        for (int row = 1; row <= n; row++)
        {
            cell = row;

            for (int col = 1; col <= n; col++)
            {
                Console.Write(cell + " ");
                cell++;
            }
            Console.WriteLine();
        }
    }
}

